<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="common.jsp" %>
<%            // Main Application Logic Comes Here

%>

<HTML>
    <c:set var="title" value="MIC Tycoon ~ Employee Page"/>
    <%@ include file="htmlheader.jsp" %>

    <body>
        <div id="resolution">

            <%@ include file="header.jsp" %>
            <%@ include file="menu.jsp" %>

            <div class="content">
                <div id="manage_employee">

                <img src="<%= realURL("", url)%>images/titles/manage-emp.png" border="0" />

                <c:forEach items="${employee_list}" var="employee">
                    <!-- TRAIN EMPLOYEE -->
                    <div id="emp-paper-holder">

                        <div id="paper-content">
                            <b>Train Employee </b>[<b>#${employee.employee_id}</b>] 
                            <a href="./${employee.employee_id}/fire"> <img src="<%= realURL("", url)%>images/buttons/fire.png" border="0" align="right" /></a>
                            <hr />
                            
                            

                            <b>Hours remaining:</b> ${employee.hours_remaining} <br/>
                            <b>Salary:</b> ${employee.salary_string} &nbsp;<br/>
                            <b>Next Payout:</b> ${employee.turn_hired}

                            <br />
                            <div id="hp"><b>Morale</b><br/>
                                <img src="<%= realURL("", url)%>images/items/hp-${employee.morale_string}.png" border="0" /></div>
                            <div id="hp"><b>Tolerance&nbsp;</b><br/>
                                <img src="<%= realURL("", url)%>images/items/hp-${employee.tolerance_string}.png" border="0" /></div>
                        </div>
                        <br/><br/><br/><br/><br/>
                        <div id="paper-skill">
                            <div id="paper-train">
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/dotnet"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/csharp"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/jsp"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/php"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/ruby"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/mysql"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/mssql"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            <div id="emp-train"><a href="<%= realURL("", url)%>servlet/employee/${employee.employee_id}/train/oracle"><img src="<%= realURL("", url)%>images/items/train.png" border="0" /></a></div>
                            </div>
                            
                            <c:if test="${employee.skillPoints_dot_net !=0}"><div id="lvl-on">${employee.skillPoints_dot_net}</div></c:if>
                            <c:if test="${employee.skillPoints_c_sharp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_c_sharp !=0}"><div id="lvl-on">${employee.skillPoints_c_sharp}</div></c:if>
                            <c:if test="${employee.skillPoints_jsp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_jsp !=0}"><div id="lvl-on">${employee.skillPoints_jsp}</div></c:if>
                            <c:if test="${employee.skillPoints_php ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_php !=0}"><div id="lvl-on">${employee.skillPoints_php}</div></c:if>
                            <c:if test="${employee.skillPoints_ruby ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_ruby !=0}"><div id="lvl-on">${employee.skillPoints_ruby}</div></c:if>
                            <c:if test="${employee.skillPoints_mysql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_mysql !=0}"><div id="lvl-on">${employee.skillPoints_mysql}</div></c:if>
                            <c:if test="${employee.skillPoints_mssql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_mssql !=0}"><div id="lvl-on">${employee.skillPoints_mssql}</div></c:if>
                            <c:if test="${employee.skillPoints_oracle ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                            <c:if test="${employee.skillPoints_oracle !=0}"><div id="lvl-on">${employee.skillPoints_oracle}</div></c:if>

                        </div>

                        



                    </div>
                </c:forEach>
                </div>
                
                <div id="hire_employee">

                    <img src="<%= realURL("", url)%>images/titles/hire-emp.png" border="0" align="right" /><br/>

                    <c:forEach items="${employee_for_hire_list}" var="hire_employee">
                        <!-- HIRE EMPLOYEE -->
                        <div id="hire-paper-holder">
                            <form action="hireEmployee.do" method="POST">

                                <div id="paper-content">
                                    <p>[<b>#${hire_employee.employee_id}</b>] Employee Name</p>
                                    <p> <b>Exp Salary:</b> ${hire_employee.salary_string} </p>
                                </div>

                                <div id="paper-skill">
                                    <c:if test="${hire_employee.skillPoints_dot_net ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_dot_net !=0}"><div id="lvl-on">${hire_employee.skillPoints_dot_net}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_c_sharp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_c_sharp !=0}"><div id="lvl-on">${hire_employee.skillPoints_c_sharp}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_jsp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_jsp !=0}"><div id="lvl-on">${hire_employee.skillPoints_jsp}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_php ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_php !=0}"><div id="lvl-on">${hire_employee.skillPoints_php}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_ruby ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_ruby !=0}"><div id="lvl-on">${hire_employee.skillPoints_ruby}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_mysql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_mysql !=0}"><div id="lvl-on">${hire_employee.skillPoints_mysql}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_mssql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_mssql !=0}"><div id="lvl-on">${hire_employee.skillPoints_mssql}</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_oracle ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                    <c:if test="${hire_employee.skillPoints_oracle !=0}"><div id="lvl-on">${hire_employee.skillPoints_oracle}</div></c:if>
                                </div>

                                <div id="paper-action">
                                    <input type="hidden" value="${hire_employee.employee_id}" name="selectedEmployee"/>
                                    <input class="hire-me" type="submit" value="Hire Me"/>
                                </div>
                            </form>
                        </div>

                    </c:forEach>

                </div>
            </div>
        </div>

    </BODY>
</HTML>